.page-container {
  padding: 16px;
  background-color: #fff;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.09);
}

.search-area {
  margin-bottom: 16px;
  padding: 16px;
  background-color: #fff;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  border: 1px solid #f0f0f0;
}

.search-form {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
}

.search-item {
  display: flex;
  flex-direction: column;
  min-width: 200px;
  
  label {
    margin-bottom: 8px;
    font-size: 14px;
    color: rgba(0, 0, 0, 0.85);
    font-weight: 500;
  }
}

.search-buttons {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

.operation-area {
  margin-bottom: 16px;
  display: flex;
  gap: 16px;
}

.table-container {
  position: relative;
  width: 100%;
  overflow-x: auto;
  overflow-y: visible;
  margin-bottom: 20px;
}

.table-fixed-columns {
  width: 100%;
  min-width: 1600px;
  border-collapse: separate;
  border-spacing: 0;
}

.fixed-column {
  position: sticky;
  background-color: white;
  z-index: 2;
}

.fixed-column-1 {
  left: 0;
  width: 60px;
  box-shadow: 2px 0 5px -2px rgba(0,0,0,0.1);
}

.fixed-column-2 {
  left: 60px;
  width: 80px;
  box-shadow: 2px 0 5px -2px rgba(0,0,0,0.1);
}

.fixed-column-3 {
  left: 140px;
  width: 180px;
  box-shadow: 2px 0 5px -2px rgba(0,0,0,0.1);
}

thead .fixed-column {
  background-color: #f8f9fa;
  z-index: 3;
}

.table-light .fixed-column {
  background-color: #f8f9fa;
}

.table-fixed-columns th,
.table-fixed-columns td {
  padding: 0.75rem;
  border: 1px solid #dee2e6;
  white-space: nowrap;
  min-width: 120px;
}

.column-code {
  min-width: 140px;
}

.column-status {
  min-width: 100px;
}

.column-date {
  min-width: 120px;
}

.column-type {
  min-width: 120px;
}

.column-warehouse {
  min-width: 150px;
}

.column-quantity {
  min-width: 100px;
}

.column-amount {
  min-width: 120px;
}

.column-handler {
  min-width: 120px;
}

.operation-column {
  min-width: 180px;
}

.table-fixed-columns select,
.table-fixed-columns input {
  width: 100%;
  min-width: 100px;
  padding: 0.375rem 0.75rem;
}

.table-fixed-columns .form-select {
  padding-right: 2rem;
}

.show-shadow .fixed-column-3 {
  box-shadow: 2px 0 5px -2px rgba(0,0,0,0.2);
}

.table-fixed-columns tbody tr:hover {
  background-color: rgba(0,0,0,0.03);
}

.table-light td {
  font-weight: bold;
}

.table-light .text-danger {
  color: #ff6600 !important;
}

.custom-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  padding: 8px 0;
}

.pagination-total {
  font-weight: 500;
  color: rgba(0, 0, 0, 0.65);
}

.pagination-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pagination-btn {
  min-width: 32px;
  height: 32px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  
  &.page-number {
    margin: 0 4px;
  }
}

.pagination-pages {
  display: flex;
  align-items: center;
}

.pagination-size-changer {
  display: flex;
  align-items: center;
  margin-left: 8px;
  padding: 0 8px;
  height: 32px;
  border: 1px solid #d9d9d9;
  border-radius: 2px;
  cursor: pointer;
  
  .size-changer-text {
    margin-right: 6px;
  }
}

.link-text {
  color: #1890ff;
  text-decoration: none;
  
  &:hover {
    color: #40a9ff;
    text-decoration: underline;
  }
}

.operation-link {
  color: #1890ff;
  margin: 0 4px;
  font-size: 16px;
  
  &:hover {
    color: #40a9ff;
  }
  
  &.delete:hover {
    color: #ff4d4f;
  }
}

.total-text {
  font-weight: 500;
}

:host ::ng-deep {
  .ant-table-thead > tr > th {
    background-color: #fafafa;
    font-weight: 500;
  }
  
  .ant-table-tbody > tr:hover > td {
    background-color: #e6f7ff;
  }
  
  .ant-tag {
    margin-right: 0;
    border-radius: 2px;
    font-weight: 500;
  }
  
  .ant-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    
    .anticon {
      margin-right: 4px;
    }
  }
}

.btn-gradient {
  background: linear-gradient(90deg, #3b82f6 0%, #6366f1 100%);
  color: #fff !important;
  border: none;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.15);
  font-weight: 500;
}
.btn-gradient:hover, .btn-gradient:focus {
  background: linear-gradient(90deg, #2563eb 0%, #7c3aed 100%);
  color: #fff !important;
}

.btn-green {
  background: #22c55e;
  color: #fff !important;
  border: none;
  border-radius: 6px;
  font-weight: 500;
}
.btn-green:hover, .btn-green:focus {
  background: #16a34a;
  color: #fff !important;
}

.btn-gray {
  background: #f4f4f5;
  color: #333 !important;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  font-weight: 500;
}
.btn-gray:hover, .btn-gray:focus {
  background: #e5e7eb;
  color: #222 !important;
}

.btn-red {
  background: #fff0f0;
  color: #ff4d4f !important;
  border: 1px solid #ffccc7;
  border-radius: 6px;
  font-weight: 500;
}
.btn-red:hover, .btn-red:focus {
  background: #ff4d4f;
  color: #fff !important;
  border: 1px solid #ff4d4f;
}

.btn-sm {
  padding: 0 10px;
  font-size: 13px;
  height: 28px;
  line-height: 26px;
}

.operation-area, .search-buttons {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
}

.search-input, .search-select {
  background: #f7f8fa !important;
  border-radius: 10px !important;
  border: none !important;
  min-height: 44px;
  font-size: 16px;
  color: #222 !important;
  box-shadow: none !important;
  padding-left: 18px !important;
  padding-right: 18px !important;
}

.search-select .ant-select-selector {
  background: #f7f8fa !important;
  border-radius: 10px !important;
  border: none !important;
  min-height: 44px;
  font-size: 16px;
  color: #222 !important;
  box-shadow: none !important;
  padding-left: 18px !important;
  padding-right: 18px !important;
  display: flex;
  align-items: center;
}

.search-item input,
.search-item .ant-picker,
.search-item .ant-select {
  width: 100%;
}

.search-item label {
  font-weight: 500;
  color: #444;
  margin-bottom: 8px;
} 